Skip to content

RTSP H265 Aggregation packet support #2413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ArtsemKurantsou
Copy link

@ArtsemKurantsou ArtsemKurantsou commented May 12, 2025

Aggregation packet support for H265 RTSP added according to the specification.
The implementation is based on the assumption that DONL won't be present in the packet since sprop-max-don-diff != 0 is not supported

Fixes issue: #1008

@ArtsemKurantsou ArtsemKurantsou marked this pull request as ready for review May 12, 2025 00:09
@ArtsemKurantsou
Copy link
Author

Hi @tonihei, could you please help with review and moving forward with the change?

@microkatz microkatz self-requested a review May 16, 2025 12:23
@microkatz microkatz self-assigned this May 16, 2025
int endOfData = data.bytesLeft();
int currentPosition = 2; // skipping payload header (2 bytes)
do {
int nalUnitSize = ((data.getData()[currentPosition] & 0xFF) << 8)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this equivalent to data.readUnsignedShort()?

ParsableByteArray operations utilized instead of manual bytes manipulation
@ArtsemKurantsou ArtsemKurantsou requested a review from microkatz May 20, 2025 16:21
@ArtsemKurantsou
Copy link
Author

Hi @microkatz thank you for review and comment, could you please review again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants